<%-- 
    Document   : index
    Created on : Feb 8, 2012, 10:04:07 PM
    Author     : Waseem
--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" href="./css/main.css" type="text/css"/>
    </head>
    <body>
        <div class="filler">
            <div class="bg">
                <div class="main">
                    <c:choose>
                    <c:when test="${user.isDoctor}">
                    <div class="hdr">
                        <div class="logo">
                            <img src="./imgs/logo.png"/>
                        </div>
                        <div class="hdr_content_container">
                            <div class="acct_btns" style="margin-top : 10px;">
                                <div class="acct_btn">
                                    <a href="accountSettings.jsp">Account Settings</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="LoginServlet?action=logout">Log Out</a>
                                </div>
                            </div>

                            <div class="acct_btns" style="margin-top: 75px;">
                                <div class="acct_btn">
                                    <a href="doctorDashboard.jsp">Home</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="plans.jsp">Plans</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="patients.jsp">Patients</a>
                                </div>

                            </div>
                        </div>
                    </div>
                    </c:when>
                    <c:otherwise>
                    <div class="hdr">
                        <div class="logo">
                            <img src="./imgs/logo.png"/>
                        </div>

                        
                        <div class="hdr_content_container">
                            <div class="acct_btns" style="margin-top : 10px;">
                                <div class="acct_btn">
                                    <a href="accountSettings.jsp">Account Settings</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="LoginServlet?action=logout">Log Out</a>
                                </div>
                            </div>

                            <div class="acct_btns" style="margin-top: 75px;">
                                <div class="acct_btn">
                                    <a href="dashboard.jsp">Home</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="calendar.jsp">Calendar</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="plans.jsp">Plans</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="data.jsp">Data</a>
                                </div>
                                <div class="acct_btn">
                                    <a href="friends.jsp">Friends</a>
                                </div>

                            </div>
                        </div>
                    </div>
                    </c:otherwise>
                    </c:choose>
                    <!-- hdr -->

                    <div class="container">
                        <div class="left_nav">
                            <div class="plan_nav">
                                <div class="plan_nav_link">
                                    <a href="planCreate.jsp">+Create Plan</a>
                                </div>
                                <div class="plan_nav_link">
                                    <a href="plans.jsp">+View Plans</a>
                                </div>
                                <div class="plan_nav_search">
                                    <form action="Plans?action=search" method="post">
                                        <div class="plan_nav_search_hdr">
                                            Search Plans:
                                        </div>
                                        <input type="text" name="q" size=""/>
                                        <input type="submit" value="Search!" name=""/>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <div class="page_body">
                            <div class="body_hdr">
                                <span>Plans</span>
                            </div>
                            <div class="plansview_container">
                                <c:choose>
                                    <c:when test="${user eq 'Doctor'}">
                                        <iframe src="doctorListPlans.jsp" scrolling="yes"/>
                                    </c:when>
                                    <c:otherwise>
                                        <iframe src="listPlans.jsp" scrolling="yes"/>
                                    </c:otherwise>
                                </c:choose>
                            </div>
                        </div>
                    </div>
                    <!-- dashboard container -->
                </div>
                <!-- main -->
            </div>
            <!-- bg -->
        </div>
        <!-- filler -->
    </body>
</html>
